package com.corpgovernment.costcenter.mapper;

import com.corpgovernment.costcenter.entity.db.MbOrgCostDepartment;
import com.corpgovernment.organization.common.mybatis.TkMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: jt.qin
 * @DateTime: 2019/12/20 14:26
 * @Description
 */
@Repository
public interface MbOrgCostDepartmentMapper extends TkMapper<MbOrgCostDepartment> {
    List<String> selectCostInfoIdCostCenter(@Param("parentOrgId") String parentOrgId,
                                            @Param("childOrgIdList") List<String> childOrgIdList,
                                            @Param("havingCount") int havingCount);

    int deleteByPrimaryKey(Long id);

    int insert(MbOrgCostDepartment record);

    int insertOrUpdate(MbOrgCostDepartment record);

    int insertOrUpdateSelective(MbOrgCostDepartment record);

    int insertSelective(MbOrgCostDepartment record);

    MbOrgCostDepartment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MbOrgCostDepartment record);

    int updateByPrimaryKey(MbOrgCostDepartment record);

    int updateBatch(List<MbOrgCostDepartment> list);

    int updateBatchSelective(List<MbOrgCostDepartment> list);

    int batchInsert(@Param("list") List<MbOrgCostDepartment> list);
}
